package slim3.controller;

import org.slim3.controller.Controller;
import org.slim3.controller.Navigation;

import slim3.service.PostService;

public class IndexController extends Controller {

    private PostService service = new PostService();
    
    @Override
    public Navigation run() throws Exception {
        requestScope("postList", service.getAll());
        return forward("Index.jsp");
    }
}
